<?php

namespace App\Levels\Points;

use App\Models\Order;

/**
 * 全店营业额积分
 */
class StoreAllMoneyPoint extends BasePoint
{
    protected string $label = "全店营业额";
    public function getFromOrder(Order $order): int
    {
        return $this->toIntPoint($order->money);
    }
}
